/*
 * @Author: ailin
 * @Date: 2022-11-26 15:09:55
 * @LastEditors: ailin
 * @LastEditTime: 2023-09-01 16:30:47
 * @Description: file content
 * @FilePath: /pay_platform/src/main.js
 */
import { createApp } from "vue"
import App from "./App.vue"
import router from "./router"
//节流 防抖
import debounceThrottle from "@/mixins/debounceThrottle"
import "@/assets/css/global.scss"
import "vant/es/toast/style"
import "vant/es/dialog/style"
import "vant/es/notify/style"
import "vant/es/image-preview/style"
import "amfe-flexible"
import Vconsole from "vconsole"
console.info(` %c 环境变量：${import.meta.env.MODE}`, "color: #fff; background-color: red")
const app = createApp(App)
app.config.productionTip = false /// 设置 false 以阻止 Vue 在启动时生成生产提示
app.mixin(debounceThrottle)
//生产环境不使用vconsole
if (import.meta.env.MODE != "production") {
  let vConsole = new Vconsole()
  app.use(vConsole)
}

app.use(router).mount("#app")
